package com.hivekion.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.ColumnComment;
import com.gitee.sunchenbin.mybatis.actable.annotation.ColumnType;
import com.gitee.sunchenbin.mybatis.actable.annotation.DefaultValue;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import com.hivekion.common.entity.BaseEntity;
import lombok.Data;

/**
 * 角色表 sys_role
 *
 * @author sutao
 */
@Data
@TableName("sys_role")
public class SysRole extends BaseEntity {
      @TableField
      @ColumnType(value = MySqlTypeConstant.VARCHAR, length = 80)
      @ColumnComment("角色名称")
      private String roleName;

      @TableField
      @ColumnType(value = MySqlTypeConstant.INT, length = 8)
      @ColumnComment("显示顺序")
      private Integer sortCode;

      @TableField
      @ColumnType(value = MySqlTypeConstant.INT, length = 4)
      @ColumnComment("状态")
      private Integer status;

      @TableField
      @ColumnType(value = MySqlTypeConstant.INT, length = 4)
      @ColumnComment("删除标识")
      @DefaultValue("0")
      private Integer deleteMark;
}
